"""
    clear.py
    清空 images 文件夹
"""
import os


def clear_images():
    for filename in os.listdir('images'):
        print(filename)
        if filename.endswith('.png'):
            os.remove(f'images/{filename}')


if __name__ == '__main__':
    clear_images()
